*** Settings ***
Documentation           构建web登录界面
Resource                ../../test_function/resource.robot
Library                 RequestsLibrary

*** Keywords ***
Create Web Session
    [Documentation]    创建web登录界面

    # 创建认证元组变量
    ${AUTH_CREDENTIALS}    Create List    ${OPENUBMC_USERNAME}    ${OPENUBMC_PASSWORD}
    Log      认证元组变量:${AUTH_CREDENTIALS}

    Create Session    bmc_web    https://${OPENUBMC_HOST}:${HTTP_PORT}
    ...    auth=${AUTH_CREDENTIALS}
    ...    verify=${False}

